package com.jsrana.idea.plugin.ideaweather;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by jrana on 7/16/14.
 */
public class WeatherCondition {
    private String code;
    private String text;
    private String image;
    static Map<String, String> conditionMap = new HashMap<String, String>();
    static Map<String, String> iconMap = new HashMap<String, String>();

    static {
        conditionMap.put( "0", "Tornado" );
        conditionMap.put( "1", "Tropical Storm" );
        conditionMap.put( "2", "Hurricane" );
        conditionMap.put( "3", "Severe Thunderstorms" );
        conditionMap.put( "4", "Thunderstorms" );
        conditionMap.put( "5", "Mixed Rain and Snow" );
        conditionMap.put( "6", "Mixed Rain and Sleet" );
        conditionMap.put( "7", "Mixed Snow and Sleet" );
        conditionMap.put( "8", "Freezing Drizzle" );
        conditionMap.put( "9", "Drizzle" );
        conditionMap.put( "10", "Freezing Rain" );
        conditionMap.put( "11", "Showers" );
        conditionMap.put( "12", "Showers" );
        conditionMap.put( "13", "Snow Flurries" );
        conditionMap.put( "14", "Light Snow Showers" );
        conditionMap.put( "15", "Blowing Snow" );
        conditionMap.put( "16", "Snow" );
        conditionMap.put( "17", "Hail" );
        conditionMap.put( "18", "Sleet" );
        conditionMap.put( "19", "Dust" );
        conditionMap.put( "20", "Foggy" );
        conditionMap.put( "21", "Haze" );
        conditionMap.put( "22", "Smoky" );
        conditionMap.put( "23", "Blustery" );
        conditionMap.put( "24", "Windy" );
        conditionMap.put( "25", "Cold" );
        conditionMap.put( "26", "Cloudy" );
        conditionMap.put( "27", "Mostly Cloudy" ); // night
        conditionMap.put( "28", "Mostly Cloudy" ); // day
        conditionMap.put( "29", "partly cloudy (night)" );
        conditionMap.put( "30", "partly cloudy (day)" );
        conditionMap.put( "31", "clear (night)" );
        conditionMap.put( "32", "sunny" );
        conditionMap.put( "33", "fair (night)" );
        conditionMap.put( "34", "fair (day)" );
        conditionMap.put( "35", "Mixed Rain and hail" );
        conditionMap.put( "36", "hot" );
        conditionMap.put( "37", "isolated thunderstorms" );
        conditionMap.put( "38", "scattered thunderstorms" );
        conditionMap.put( "39", "scattered thunderstorms" );
        conditionMap.put( "40", "scattered Showers" );
        conditionMap.put( "41", "heavy Snow" );
        conditionMap.put( "42", "scattered Snow Showers" );
        conditionMap.put( "43", "heavy Snow" );
        conditionMap.put( "44", "partly cloudy" );
        conditionMap.put( "45", "thundershowers" );
        conditionMap.put( "46", "Snow Showers" );
        conditionMap.put( "47", "Isolated Thundershowers" );
        conditionMap.put( "3200", "not available" );
    }

    public WeatherCondition( String code,
                             String text,
                             String image ) {
        this.code = code;
        this.text = text;
        this.image = image;
    }

    public String getCode() {
        return code;
    }

    public void setCode( String code ) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText( String text ) {
        this.text = text;
    }

    public String getImage() {
        return image;
    }

    public void setImage( String image ) {
        this.image = image;
    }
}
